package com.aaa.goodsservice.service;

import com.aaa.common.entity.Order;
import com.aaa.goodsservice.po.Product;

import java.util.List;

/**
 * @Author: YuXin
 * @Date : Created in 2020/11/3 17:01
 * @ClassName : GoodsService
 * @Description :
 * @Package_Name : com.aaa.goodsservice.service
 */
public interface GoodsService {
    List<Product> selectAll();

    int deleteByPrimaryKey(Long id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    /**
     * 订单列表
     */
    List<Order> selectAllOrder();
}
